package com.qlk.test.vorder.rest;

import org.junit.Test;
import org.springframework.util.Assert;

import com.qlk.common.client.AbstractClient;
import com.qlk.test.vorder.rest.dto.SerialLog;
import com.qlk.test.vorder.rest.request.SerialLogRequest;
import com.qlk.test.vorder.rest.response.SerialLogResponse;
import com.qlk.test.vorder.rest.Urls;

/**
 * SerialLogResource单元测试
 * 
 * @author zhaoyanan
 * @version 2016-7-28 14:14:01
 * 
 */
public class SerialLogResourceTestCase extends AbstractClient {

	@Test
	public void testGetSerialLog() {
		String url = Urls.API_DOMAIN + "/serialLog/getSerialLog";

		SerialLogRequest request = new SerialLogRequest();
		request.setId(1l);
		SerialLogResponse response = super.getRestTemplate().postForObject(url, request, SerialLogResponse.class);
		Assert.notNull(response);
		SerialLog serialLog = super.getResult(response);
		Assert.notNull(serialLog);
	}
}
